package org.springframework.test.aop;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;
import org.springframework.core.MethodIntrospector;

/**
 * [简要描述]:
 * [详细描述]:
 *
 * @author ZouHaiBo
 * @version 1.0, 2021/8/5 16:49
 * @since JDK 1.8
 */
public class MyAdvice implements MethodInterceptor
{


	@Override
	public Object invoke(MethodInvocation invocation) throws Throwable
	{
		System.out.println("before MyAdvice.invoke");
		Object proceed= invocation.proceed();
		System.out.println("after MyAdvice.invoke");
		return proceed;
	}
}
